package com.jimo.fl_space

import android.app.Application
import android.content.Context
import android.util.Log
import com.fvbox.lib.FCore
import com.fvbox.lib.abs.ApplicationCallback
import com.jimo.fl_space.util.ContextHolder

class BoxApplication : Application() {
    override fun attachBaseContext(base: Context) {
        super.attachBaseContext(base)
        ContextHolder.init(base)
        FCore.get().init(this)
        FCore.get().setAllowSystemInteraction(true)
        FCore.get().setAutoPreloadApplication(true)
        if(FCore.isClient()) {
            return
        }
    }

    override fun onCreate() {
        super.onCreate()
        if(FCore.isClient()) {
            return
        }
    }
}
